// 可选成员、只读成员、动态成员

export {}

interface Post {
    title: string
    content: string
    subtitle?: string           // 可选成员
    readonly summary: string    // 只读成员
}

const hello: Post = {
    title: 'Hello TS',
    content: "A javascript superset",
    summary: 'A javascript'
}

// hello.summary = 'd'

interface Cache {
    [prop: string]: string
}

const cache: Cache = {}
cache.foo = 'ddd'